package com.xy.hms.service;



import com.xy.hms.model.User;

import java.util.List;

/**
 * @author xiaye
 * @create 2020-02-26-16:25
 */
public interface UserServiceI {

   public User userLogin(User user) throws Exception;

   public User shiroLogin(String username);

   public List<String> getPermission(Integer uid);


   public String getRoleName(User toConfirmUser);

   String addUser(String username, String password);

   int grantAuthorization();

   List<User> getUserWithAuth();

   User  getUserWithAuthById(Integer id);

   int updateUser(User user);

   int updateUserRole(Integer uid,Integer rid);

   User getUserByCondition(User user);

   int addAuth(Integer uid);
}
